import Vue from "vue";
import Vuex from "vuex";
// common
import accountStore from "src/store/module/common/accountStore.js";
import pageSizeStore from "src/store/module/common/pageSizeStore.js";

// style
import windowResize from "src/store/module/style/windowResize.js";

// query
import querycommon from "src/store/module/query/common.js";
import selectedSportType from "src/store/module/query/selectedSportType.js";
import dataSource from "src/store/module/query/dataSource.js";

// header

import title from "src/store/module/header/title.js";

// footer

import breadcrumbsPart4 from "src/store/module/footer/breadcrumbsPart4.js";

// layout
// import rightdetail from "src/store/module/layout/rightdetail.js";

//routerCache
import routerCache from "src/store/module/routerCache/routerCache.js";




// global
import  allMatchStaus from "src/store/module/global/allMatchStaus.js"
import allMatchStatusAndLevel from "src/store/module/global/allMatchStatusAndLevel.js"
Vue.use(Vuex);

/*
 * If not building with SSR mode, you can
 * directly export the Store instantiation
 */

export default function(/* { ssrContext } */) {
  const Store = new Vuex.Store({
    modules: [
      accountStore,
      pageSizeStore,
      windowResize,
      querycommon,
      dataSource,
      selectedSportType,
      title,
      breadcrumbsPart4,
      // rightdetail,
      allMatchStaus,
      allMatchStatusAndLevel,
      routerCache
    ],

    // enable strict mode (adds overhead!)
    // for dev mode only
    strict: process.env.DEV
  });

  return Store;
}
